//app.js
App({
  onLaunch: function () {
    this.readSettingsSync();
  },
  readSettingsSync() {
    let result = wx.getStorageSync('settings');
    //console.log("读取配置")
    //console.log(result)
    this.globalData = Object.assign(this.globalData, result);
    //this.globalData.mac="58:FB:84:30:CD:BA";
    //this.globalData.mac="FC:7C:02:ED:1A:4C";
  },
  globalData: {
    host: "",
    mac: "",
    isSoundOn: true,
    isVibrateOn: true,
    isRead: false
  }
})